﻿using System;
using System.Web.UI;
using System.Data;

public partial class App_Form_Nhan_su_ns_phong : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ScriptManager.GetCurrent(this).Services.Add(new ServiceReference("~/Service/DanhMuc.svc"));

            string b_qr = Request.QueryString["id_phong"];
            DataTable b_dt = LIB.Data.SqlData.GetData(b_qr, "PNHANSU_TIM_PH");

            string b_nsd = LIB.Core.LibTable.FormTableToJson(b_dt);
            ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "P_DATA(" + b_nsd + ");", true);
        }
    }
}